<?php
/*
 *	DreamArticle Version3.0
 *	Copyright 2007-2008, iDreamSoft
 *	http://www.idreamsoft.cn
 *	By:coolmoo<idreamsoft@qq.com>
*/
!defined('DCPATH') && exit('What are you doing?');
foreach($menu_array AS $key=>$menus){
	if(power($key)){
		echo '<ul id="menu_'.$key.'" style="display: none">';
		foreach($menus as $k=>$url) {
			if(power($k)){
				echo '<li><a id="'.$k.'" href="'.(substr($url, 0, 4) == 'http' ? $url : 'admincp.php?do='.$url).'" target="main">'.lang($k).'</a></li>';
			}
		}
		echo '</ul>';
	}
}
?>